﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="webset.aspx.cs" Inherits="UI.system.webset" ValidateRequest="false" %>
<%@ Import Namespace="Model" %>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<script type="text/javascript" src="lib/PIE_IE678.js"></script>
<![endif]-->
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link href="css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="css/H-ui.admin.css" rel="stylesheet" type="text/css" />
<link href="lib/icheck/icheck.css" rel="stylesheet" type="text/css" />
<link href="lib/Hui-iconfont/1.0.1/iconfont.css" rel="stylesheet" type="text/css" />
<link href="lib/webuploader/0.1.5/webuploader.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="lib/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="lib/ueditor/ueditor.all.min.js"> </script>
<script type="text/javascript" src="lib/ueditor/lang/zh-cn/zh-cn.js"></script>

<!--[if IE 6]>
<script type="text/javascript" src="http://lib.h-ui.net/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>添加商品</title>
</head>
<body>
<div class="pd-20">
  <form action="" method="post" class="form form-horizontal" id="form-user-add">
    <iframe id="iframe" src="" style="display:none;"></iframe>
    <div class="btn-success" style="display:none;"></div>
    <div class="row cl" >
      <label class="form-label col-2">网站标题</label>
      <div class="formControls col-5">
          <textarea id="txt_title" style="width:400px; height:60px;" placeholder="30个字之内"><%=newses.name%></textarea>
      </div>
      <div class="col-5"> </div>
    </div>
    <div class="row cl">
      <label class="form-label col-2">网站关键词</label>
      <div class="formControls col-5">
          <textarea id="txt_keyword" style="width:400px; height:60px;" placeholder="60个字之内，中间用英文逗号,隔开"><%=newses.img%></textarea>
      </div>
      <div class="col-5"> </div>
    </div>
    <div class="row cl">
      <label class="form-label col-2">网站描述</label>
      <div class="formControls col-5">
          <textarea id="txt_descript" style="width:400px; height:60px;" placeholder="80个字之内"><%=newses.context%></textarea>
      </div>
      <div class="col-5"></div>
    </div>
    <div class="row cl">
      <div class="col-9 col-offset-2">
        <input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
      </div>
    </div>
  </form>
</div>
<script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="lib/icheck/jquery.icheck.min.js"></script>
<script type="text/javascript" src="lib/Validform/5.3.2/Validform.min.js"></script>
<script type="text/javascript" src="lib/layer/1.9.3/layer.js"></script>
<script type="text/javascript" src="js/H-ui.js"></script>
<script type="text/javascript" src="js/H-ui.admin.js"></script>
<script src="/js/swfupload.js"></script>
<script type="text/javascript">
    var ue = UE.getEditor('editor');
    $(function () {
        $('.skin-minimal input').iCheck({
            checkboxClass: 'icheckbox-blue',
            radioClass: 'iradio-blue',
            increaseArea: '20%'
        });
        $("#form-user-add").Validform({
            tiptype: 2,
            callback: function (form) {
                var data = {};
                data.act = "Save_WebSet";
                data.title = $("#txt_title").val();
                data.keyword = $("#txt_keyword").val();
                data.descript = $("#txt_descript").val();
                Ajax.Post("/system/tools/Admin.ashx", data, function (r) {
                    var json = $.parseJSON(r);
                    if (json.state) {
                        layer.msg('已成功!', { icon: 1, time: 1000 }, function () {
                           $("#iframe").attr("src","/system/make.aspx");
                        });

                    }
                    else {
                        layer.msg(json.msg, { icon: 2, time: 1000 });
                    }
                });
                return false; //必写
            }
        });

    });



</script>
</body>
</html>